﻿@{
    ViewBag.Title = "List2";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    var gid = new WebGrid
}
<h2>List2</h2>
 <table cellspacing="0"  class="listTable" id="postList">
				
					<thead>
						<tr>
							
							<th>id</th>
							<th>Name</th>
							<th>Username</th>
							<th>Email</th>
							
                         
                           
						</tr>
					</thead>
					
					<tbody>
                      @foreach (var item in ViewBag.data)
                      { 
						<tr>
							
							
							<td valign="middle" align="center">@item.UserID</td>
                            <td valign="middle" align="center">@item.RealName</td>
							<td valign="middle" align="center">@item.UserName</td>
				            <td valign="middle" align="center">@item.Email</td>
                            
						</tr>
                      }
						
					</tbody>
					<!-- /Tbody -->
				</table>